package com.xyh.jvmDemo;


public class TextLockDemo {
    public static void main(String[] args) {



        /*Station station1 = new Station("窗口一");
        Station station2 = new Station("窗口二");
        Station station3 = new Station("窗口三");

        station1.start();
        station2.start();
        station3.start();*/


        //StationRunnable ld = new StationRunnable();
        LockDemo ld = new LockDemo();
        Thread tt1 = new Thread(ld);
        Thread tt2 = new Thread(ld);
        Thread tt3 = new Thread(ld);
        tt1.setName("窗口一");
        tt2.setName("窗口二");
        tt3.setName("窗口三");

        tt1.start();
        tt2.start();
        tt3.start();

    }
}